package org.createModel.factory.staticFactory;

/**
 * 静态工厂类
 */
public class Client {
    public static void main(String[] args) {
        CoffeeStore store = new CoffeeStore();
        Coffee coffee = store.orderCoffee("AmericanCoffee");
        System.out.println(coffee.getName());
        coffee = store.orderCoffee("LatteCoffee");
        System.out.println(coffee.getName());
    }
}
